package com.earnings.okhttputils.utils.UrlConstant;

import com.earnings.okhttputils.utils.utils.CommonUtil;

/**
 * Created by HOHO on 2017/4/25.
 */


public class HttpUrl {


    public static final String index;
    public static final String index_test = "http://test.baishisc.com/";
    public static final String index_formal = "http://www.baishisc.com/";

    static {
        if (CommonUtil.getUser().isDEBUG())
            index = index_test;
        else
            index = index_formal;
    }

    public static final String indexUrl = index + "index.php?";
    public static final String HOME_DATA_URL = indexUrl + "m=Api&c=Index&a=newIndex";//首页数据
    public static final String VERSION_URL = indexUrl + "m=Api&c=Other&a=version";//用户登录
    //用户信息
    public static final String USER_LOGIN_URL = indexUrl + "m=Api&c=User&a=login";//用户登录
    public static final String USER_EXIT_URL = indexUrl + "m=Api&c=User&a=logout";//退出登录
    public static final String USER_SAN_LOGIN_URL = indexUrl + "m=Api&c=User&a=checkOpenid";//三方登录
    public static final String SEND_CODE = indexUrl + "m=Api&c=User&a=sendSms";//发送验证码 1用户注册，2用户找回密码，3客户下单，4客户支付，5商家发货，6修改手机号码
    public static final String SEND_CODE_CHECK = indexUrl + "m=Api&c=User&a=checkCode";//检验验证码
    public static final String USER_SAN_BIND_URL = indexUrl + "m=Api&c=User&a=tieUp";//三方绑定
    public static final String IMG_UPLOAD = indexUrl + "m=Api&c=Upload&a=image";//图片上传接口

    public static final String USER_REGISTER_URL = indexUrl + "m=Api&c=User&a=reg";//用户注册
    public static final String USER_UPDATE_URL = indexUrl + "m=Api&c=User&a=updateUserInfo";//更新用户信息
    public static final String USER_LOAD_URL = indexUrl + "m=Api&c=User&a=userInfo";//获取用户信息
    public static final String USER_FORGET_RESET_PASSWORD_URL = indexUrl + "m=Api&c=User&a=forgetPassword";//忘记密码重置
    public static final String USER_IMAGE_CODE_URL = indexUrl + "m=Api&c=User&a=getVerify";//图片验证码
    public static final String USER_CHECK_CODE_URL = indexUrl + "m=Api&c=User&a=checkCode";//检验验证码

    public static final String USER_REALNAME_SUMBIT_URL = indexUrl + "m=Api&c=Idcard&a=save";//提交实名认证
    public static final String USER_REALNAME_LOAD_URL = indexUrl + "m=Api&c=Idcard&a=show";//查询实名认证

    public static final String USER_TREASURE_URL = indexUrl + "m=Api&c=User&a=getMoney";//查询余额与财币
    public static final String USER_STATISTICS_URL = indexUrl + "m=Api&c=User&a=Statistics";//查询用户累计消费
    public static final String USER_FEEDBACK_URL = indexUrl + "member/add_suggestion";//意见反馈

    public static final String USER_RECHARGE_ONLINE = indexUrl + "m=Api&c=Payment&a=dopay";//调用支付接口
    public static final String USER_RECHARGE_LOAD_DATA = indexUrl + "m=Api&c=Other&a=payLimit";//获取充值公用信息
    public static final String USER_RECHARGE_OFFLINE_SUMBIT_URL = indexUrl + "m=api&c=user&a=offlineRecharge";//线下充值接口
    public static final String USER_HELP_LIST_URL = indexUrl + "m=Api&c=Article&a=articleList";//帮助中心文章列表
    public static final String USER_HELP_TYPE_URL = indexUrl + "m=Api&c=Article&a=categoryList";//帮助中心分类
    public static final String USER_WITHDRAWALS_URL = indexUrl + "m=Api&c=user&a=withdrawals";//提现
    public static final String USER_RECOMMEND_FRIENDS_URL = index + "/index.php/api/user/recommendFriendRich";//推荐的好友
    public static final String USER_ORDER_LIST_URL = indexUrl + "m=Api&c=Bill&a=lists";//用户账单列表
    public static final String USER_ORDER_TYPE_URL = indexUrl + "m=Api&c=Bill&a=cat";//用户账单分类列表
    public static final String USER_FIND_DATA_URL = indexUrl + "m=Api&c=User&a=nickName";//推荐的好友
    public static final String USER_LOVE_DATA_URL = indexUrl + "m=Api&c=Index&a=getAllloveHistory";//获取全国昨日爱心值

    //充值话费油卡
    public static final String RECHARGE_AMOUNT_LIST_URL = indexUrl + "m=Api&c=Oil&a=amoutList";//读取可用充值面额 1、话费面值，2、中石化面值，3、中石油面值
    public static final String RECHARGE_SUBSIDY_LIST_URL = indexUrl + "m=Api&c=Oil&a=planList";//读取充值方案
    public static final String RECHARGE_PHONE_INFO_URL = indexUrl + "m=Api&c=Oil&a=guiShuDi";//查询手机归属地
    public static final String RECHARGE_FLOW_AMOUNT_LIST_URL = indexUrl + "m=Api&c=Oil&a=flowList";//流量充值动态获取接口
    public static final String RECHARGE_ORDER_DETAILS_URL = indexUrl + "m=Api&c=Oil&a=orderInfo";//充值订单详情
    public static final String RECHARGE_ORDER_LIST_URL = indexUrl + "m=Api&c=Oil&a=orderList";//充值订单列表
    public static final String RECHARGE_COUNT_URL = indexUrl + "m=Api&c=Oil&a=showTask";//查询指定次数的预期充值日期
    public static final String RECHARGE_ORDER_CREATE_URL = indexUrl + "m=Api&c=Oil&a=orderAdd";//创建充值订单

    //银行卡
    public static final String USER_BANK_ADD_URL = indexUrl + "m=api&c=Bank&a=add";//用户添加银行卡绑定接口
    public static final String USER_BANK_SURE_URL = indexUrl + "m=api&c=Bank&a=save";//用户确认银行卡绑定接口
    public static final String USER_BANK_LOAD_URL = indexUrl + "m=api&c=Bank&a=card";//用户查询自己绑定的银行卡
    public static final String USER_BANK_DELETE_URL = indexUrl + "m=Api&c=Bank&a=del";//用户解绑自己的银行卡
    public static final String USER_BANK_INFO_URL = indexUrl + "m=api&c=Bank&a=info";//用户获取银行卡信息
    public static final String USER_CAST_INFO_URL = indexUrl + "m=Api&c=Other&a=castInfo";//提现信息

    public static final String USER_PAY_PWD_UPDATE_URL = indexUrl + "m=Api&c=User&a=modifyPayPwd";//用户修改支付密码
    public static final String USER_PAY_PWD_SET_URL = indexUrl + "m=Api&c=User&a=setPayPwd";//用户设置支付密码
    public static final String USER_PAY_PWD_FORGET_URL = indexUrl + "m=Api&c=User&a=forgetPayPwd";//用户忘记支付密码
    /*
    获取地址
     */
    public static final String USER_ADDR_URL = indexUrl + "m=Api&c=User&a=getRegion";//获取城市
    public static final String BIZ_TYPE_LIST_URL2 = indexUrl + "m=Api&c=Shop&a=shopList";//获取实体店铺分类2
    public static final String BIZ_PAYMENT_URL = indexUrl + "m=Api&c=shop&a=shop";//
    public static final String BIZ_PAYMENT_ORDERNUMBER_URL = indexUrl + "m=Api&c=Payment&a=entityPay";//获取商铺订单号
    public static final String USER_MYCODE_URL = indexUrl + "m=Api&c=User&a=getQrcode";//我的二维码

    //财币
    public static final String USER_RICH_DATA_URL = indexUrl + "m=Api&c=user&a=richstat";//获取财币概况
    public static final String USER_TURN_BALANCE_URL = indexUrl + "m=Api&c=user&a=transform";//c财币转余额接口
    public static final String USER_TURN_CAIBAO_URL = indexUrl + "m=Api&c=user&a=richdonate";//捐赠财币
    public static final String USER_TURN_CAIBAO_FOR_URL = indexUrl + "m=api&c=User&a=richTransfer";//转赠财币
    public static final String RECORD_DETAILS_TYPE_URL = indexUrl + "m=Api&c=Bill&a=detail";//账单详情
    public static final String USER_TURN_CAIBAO_LIST_URL = indexUrl + "m=Api&c=user&a=donatelist";//累计直捐

    //附近
    //public static final String BIZ_TYPE_LIST_URL = indexUrl + " m=Api&c=Shop&a=getCat";//获取实体店铺分类
    //附近 hahaha
    public static final String BIZ_TYPE_LIST_URL = indexUrl + "m=Api&c=Shop&a=getCatAll";//获取实体店铺分类
    public static final String GET_LOVE_URL = indexUrl + "m=Api&c=Index&a=getAllloveHistory";
    public static final String CHANGE_LOVE_URL = indexUrl + "m=Api&c=Shop&a=related";
    public static final String BIZ_DETAILS_URL = indexUrl + "m=Api&c=shop&a=shopDetail";
    public static final String BIZ_HOT_SELF_URL = indexUrl + "m=Api&c=Shop&a=hot";

    public static final String BIZ_COMMENT_WAIT_URL = indexUrl + "m=Api&c=user&a=getIsCommentLine";
    public static final String BIZ_COMMENT_LIST_MINE_URL = indexUrl + "m=Api&c=user&a=getUserCommentLine";
    public static final String BIZ_COMMENT_COMMIT_URL = indexUrl + "m=Api&c=Store&a=entityComment";
    public static final String BIZ_COMMENT_GOOD_URL = indexUrl + "m=Api&c=user&a=entityCommentZan";
    public static final String BIZ_COMMENT_DEATAILS_URL = indexUrl + "m=Api&c=store&a=entityCommentList";
    public static final String BIZ_FOLLOW_UN_URL = indexUrl + "m=Api&c=user&a=delOfflineFollow";
    public static final String BIZ_FOLLOW_URL = indexUrl + "m=Api&c=user&a=addOfflineFollow";
    public static final String BIZ_IMAGES_URL = indexUrl + "m=Api&c=shop&a=getAlbum";
    public static final String BIZ_STORE_FOLLOW_URL = indexUrl + "m=Api&c=user&a=offlineFollowList";
    public static final String BIZ_SEARCH_URL = indexUrl + "m=Api&c=shop&a=hotspot";

    //实体店标签
    public static final String TAG_URL = indexUrl + "m=Api&c=shop&a=getTag";
    public static final String BIZ_TREASURE_LIST_URL = indexUrl + "m=Api&c=User&a=richLogList";


}
